/**
 * 全局配置文件在这，方便自己 ，也要方便他人  
 *   注释信息一定要 写清楚
 */
//arcgis  启动IP
var arcgis_IP = "http://10.100.50.71:2282";
// arcgis 的资源图层IP
var arcgis_resourceIP = "http://10.100.50.71:6080";
var dse = {};
dse.version = '1.0.0';
// 测试网址
dse.base_api_url = 'http://10.100.50.210:8080/pipe'   
// gis的启动脚本
dse.arcgis_startJS = arcgis_IP + "/arcgis_js_api/library/4.7/init.js";
// arcgis 主题css
// dse.arcgis_themeCss = arcgis_IP+"/arcgis_js_api3.18/library/3.18/3.18/dijit/themes/claro/claro.css";
// arcgis 启动css
dse.arcgis_mainCss = arcgis_IP + "/arcgis_js_api/library/4.7/esri/css/main.css"
// arcgis  的 底图资源地址
dse.arcgis_belowMap = arcgis_resourceIP + "/arcgis/rest/services/0723MapService/MapServer";
// arcgis 的 管线资源图层
dse.arcgis_pipe = arcgis_resourceIP + "/arcgis/rest/services/0723PointService/MapServer"
// arcgis 的  点 资源 图层
dse.arcgis_points = arcgis_resourceIP + "/arcgis/rest/services/point0723Service/MapServer"
// arcgis 外部模块导入配置
dse.gisConfig = (function () {
  var getIndexUrl = function (app) {
    var indexPath = location.protocol + "//" + location.host + app;
    return indexPath;
  };
  var baseUrl = getIndexUrl("/static");
  return {
    async: true,
    packages: [
      {
        name: "dse",
        location: baseUrl + "/gisTools"
      }
    ]
  };
})();
//管网信息管理 管网综合信息管理 导出pdf
dse.pipeMsg_mkpdf = (function () {
  var getIndexUrl = function (app) {
    var indexPath = location.protocol + "//" + location.host + app;
    return indexPath;
  };
  var baseUrl = getIndexUrl("/static/makepdf/index.html");
  return baseUrl;
})();
//在线预览pdf
dse.onlinePrev = (function () {
  var getIndexUrl = function (app) {
    var indexPath = location.protocol + "//" + location.host + app;
    return indexPath;
  };
  var baseUrl = getIndexUrl("/static/pdfjs/web/viewer.html?file=");
  return baseUrl;
})();
//配置 区域 ID
dse.area = {
  old: "area_old",
  new: "area_new",
  deve: "area_deve"
}
// 区域
dse.areaLists = [
  {
    value: "",
    label: "全部城区"
  },
  {
    value: "area_new",
    label: "新城区"
  },
  {
    value: "area_old",
    label: "老城区"
  },
  {
    value: "area_deve",
    label: "开发区"
  }
];
// 管材
dse.productLists = [
  {
    value: "",
    label: "全部材质"
  },
  {
    value: "pipe_pe",
    label: "PE管"
  },
  {
    value: "pipe_pvc",
    label: "PVC管"
  },
  {
    value: "pipe_steel",
    label: "钢管"
  },
  {
    value: "pipe_concrete",
    label: "水泥管"
  },
  {
    value: "pipe_ball",
    label: "球墨铸铁管"
  },
  {
    value: "pipe_other",
    label: "其他管"
  }
]
//管径
dse.caliberLists = [
  {
    value: "",
    label: "全部管径"
  },
  {
    value: "pipe_DN50",
    label: "50"
  },
  {
    value: "pipe_DN65",
    label: "65"
  },
  {
    value: "pipe_DN80",
    label: "80"
  },
  {
    value: "pipe_DN100",
    label: "100"
  },
  {
    value: "pipe_DN200",
    label: "200"
  },
  {
    value: "3",
    label: "250"
  },
  {
    value: "pipe_DN300",
    label: "300"
  },
  {
    value: "pipe_DN400",
    label: "400"
  },
  {
    value: "pipe_DN500",
    label: "500"
  },
  {
    value: "pipe_DN600",
    label: "600"
  },
  {
    value: "pipe_DNOther",
    label: "other"
  }
]
//水厂组织结构
dse.tree = [
  {
    label: "中原水务",
    id: "8ae4b2d5645e202701645ec426720013",
    selected: false,
    opened: false,
    children: [
      {
        label: "海兴",
        id: "11",
        selected: false,
        icon: "fa fa-warning icon-state-danger"
      },
      {
        label: "海源",
        id: "12",
        selected: false,
        icon: "fa fa-warning icon-state-danger"
      },
      {
        label: "同心",
        id: "13",
        selected: false,
        icon: "fa fa-warning icon-state-danger",
        children: [
          {
            label: "新区水厂",
            id: "7236336184497B13E055000000000001",
            selected: false,
            icon: "fa fa-warning icon-state-danger",
          },
          {
            label: "上马蜂调蓄水池",
            id: "72363361844A7B13E055000000000001",
            selected: false,
            icon: "fa fa-warning icon-state-danger",
          }
        ]
      },
      {
        label: "同心东部",
        id: "14",
        selected: false,
        icon: "fa fa-warning icon-state-danger"
      }
    ]
  },
  {
    label: "六盘山水水务",
    id: "402881d162b284680162b3a41362012a",
    selected: false,
    opened: false,
    children: [
      {
        label: "南郊水厂",
        icon: "fa fa-warning icon-state-danger",
        id: "723568FDB8E869C5E055000000000001",
        selected: false
      },
      {
        label: "二水厂",
        id: "7236336184487B13E055000000000001",
        selected: false,
        icon: "fa fa-warning icon-state-danger"
      }
    ]
  },
  {
    label: "中南部建设",
    id: "3",
    selected: false,
    icon: "fa fa-folder icon-state-default"
  }
]
// 方便在gis页面中引出弹窗的数据绑定  
dse.globalData=null;  
